    <section id="blog" class="section-padding">
		<div class="container">
			<div class="row">
				<div class="col-lg-12 text-center">
                    <div class="section-title">
                        <h5>Latest Posts</h5>
                        <h3>最新<span> 资讯</span></h3>
                        <span class="line"></span>
                        <p></p>
                    </div>
				</div>
				<!-- end section title -->
			</div>
			<!-- end row -->

			<?php
	 $args=array(  

             'posts_per_page' => 2, // 显示篇数  
         );  
         query_posts($args);
		if ( have_posts() ) {

			// Load posts loop.
			$i=0;
			while ( have_posts() ) {
				the_post();

				if ($i % 2 ==0) {
					// echo "aaa";
					?>

					<div class="row blog-post-single">
				<div class="col-lg-6 col-md-12 col-sm-12 col-12">
					<div class="post-media-wrap">
						<div class="post-media left-image post-image-overlay">
							<?php 
	    $default_img=get_template_directory_uri()."/default.jpg";
	    if ( has_post_thumbnail() ) { 
	    	the_post_thumbnail(array(540,360),array('alt'=> trim(strip_tags( $post->post_title ))));} 
	    else {?>
	    <img src='<?php echo $default_img ?>' alt='<?php the_title(); ?>' width='296' height='296' /><?php }?>
						</div>
					</div>
				</div>
				<div class="col-lg-6 col-md-12 col-sm-12 col-12">
					<div class="blog-post-title">
						<h4><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h4>
					</div>
					<div class="blog-post-meta">

						<span class="post-date"><i class="icofont icofont-time"></i><?php the_time('Y-m-d'); ?></span>
						<i class="icofont icofont-fire"></i>
				    <?php echo number_format(getPostViews(get_the_ID())); ?>
					</div>
					<div class="blog-post-content">
					 <p><?php echo mb_strimwidth(strip_tags(apply_filters('the_content', $post->post_content)), 0, 100,''); ?></p>
					</div>
					<div class="blog-post-button-warp">
						<a class="blog-post-button" href="<?php the_permalink() ?>">查看详情 <i class="lnr lnr-chevron-right"></i></a>
					</div>
				</div>
			</div>
					<?php
				}
				else{
					?>

					<div class="row blog-post-single">
				<div class="col-lg-6 col-md-12 col-sm-12 col-12">
					<div class="blog-post-title">
						<h4><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h4>
					</div>
					<div class="blog-post-meta">
					    
						<span class="post-date"><i class="icofont icofont-time"></i><?php the_time('Y-m-d'); ?></span>
						<span class="post-cata"><i class="icofont icofont-fire"></i>
				    <?php echo number_format(getPostViews(get_the_ID())); ?></span>
					</div>
					<div class="blog-post-content">
					 <p><?php echo mb_strimwidth(strip_tags(apply_filters('the_content', $post->post_content)), 0, 100,''); ?></p>
					</div>
					<div class="blog-post-button-warp">
						<a class="blog-post-button" href="<?php the_permalink() ?>">查看详情 <i class="lnr lnr-chevron-right"></i></a>
					</div>
				</div>
				<div class="col-lg-6 col-md-12 col-sm-12 col-12">
					<div class="post-media-wrap">
						<div class="post-media left-image post-image-overlay">
							<?php 
	    $default_img=get_template_directory_uri()."/default.jpg";
	    if ( has_post_thumbnail() ) { 
	    	the_post_thumbnail(array(540,360),array('alt'=> trim(strip_tags( $post->post_title ))));} 
	    else {?>
	    <img src='<?php echo $default_img ?>' alt='<?php the_title(); ?>' width='296' height='296' /><?php }?>
						</div>
					</div>
				</div>
			</div>
					<?php
				}
				// get_template_part( 'template-parts/content/content' );
				$i++;
			}



		} 
		// var_dump($i);
		?>
			
			<!-- end row -->

			<!-- end row -->
		</div>
		<!-- END CONTAINER -->
	</section>
<?php 



      echo '<style>


	.blog-post-meta span i {
    padding-right: 8px;
    color: '.$main_color .';
}
.blog-post-meta i {
    padding-right: 8px;
    color: '.$main_color .';
}
.post-media-wrap:after {

    border: 2px solid '.$main_color .';
    -webkit-transform: scale(1, 0);
    transform: scale(1, 0);
}
.post-media-wrap:before {

    border: 2px solid '.$main_color .';
    -webkit-transform: scale(1, 0);
    transform: scale(1, 0);
}
.blog-post-button:hover, .blog-post-button:focus, .blog-post-button:active {
    color: #fff;
    border-color: '.$main_color .';
}
.blog-post-button{
	background:'.$main_color .'
}

</style>
      '; 
?>

